<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
  export default {
    name: 'App',
    methods: {
      setBodyHeight: function () {
        this.$store.commit('setBodyHeight', window.innerHeight);
        this.$store.commit('setBodyWidth', window.innerWidth);
      }
    },
    mounted() {
      window.addEventListener('resize', e => {
        this.setBodyHeight();
      });
      this.setBodyHeight();
    }
  };
</script>

<style lang="scss">
  @import "assets/scss/global";

  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }

  .container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
    background: #fff;
    text-align: left;
    box-sizing: border-box;
  }
</style>
